package com.rede.didiok.user.modulelist.rank.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rede.didiok.common.utils.PageUtils;
import com.rede.didiok.common.utils.Query;
import com.rede.didiok.user.modulelist.rank.dao.MemberContentDao;
import com.rede.didiok.user.modulelist.rank.entity.MemberContentEntity;
import com.rede.didiok.user.modulelist.rank.service.MemberContentService;


@Service("memberContentService")
public class MemberContentServiceImpl extends ServiceImpl<MemberContentDao, MemberContentEntity> implements MemberContentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberContentEntity> page = this.page(
                new Query<MemberContentEntity>().getPage(params),
                new QueryWrapper<MemberContentEntity>()
        );

        return new PageUtils(page);
    }

}